﻿package com.moonshineproject.plugin.menu.interfaces
{
	import flash.display.Stage;

	/**
	 * ...
	 * @author Conceptual Ideas
	 */
	public interface ICustomMenu
	{
		function get items():Vector.<ICustomMenuItem>;

		//function set items(value:Vector.<ICustomMenuItem>):void

		function get numItems():int



		function get label():String


		function set label(value:String):void




		function addItem(item:ICustomMenuItem):ICustomMenuItem


		function addItemAt(item:ICustomMenuItem, index:int):ICustomMenuItem


		function addSubmenu(submenu:ICustomMenu, label:String=null):ICustomMenuItem


		function addSubMenuAt(submenu:ICustomMenu, index:int, label:String=null):ICustomMenuItem


		function containsItem(item:ICustomMenuItem):Boolean


		function getItemAt(index:int):ICustomMenuItem


		function getItemByName(name:String):ICustomMenuItem


		function getItemIndex(item:ICustomMenuItem):int

	}
}




